package com.lt.lumentracks.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 热门话题表
 * </p>
 *
 * @author swl
 * @since 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("topic")
public class Topic implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 话题唯一标识ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 话题名称（如：#秋日穿搭）
     */
    @TableField("name")
    private String name;

    /**
     * 话题描述
     */
    @TableField("description")
    private String description;

    /**
     * 热度分数，用于排序
     */
    @TableField("heat_score")
    private Integer heatScore;

    /**
     * 是否为热门话题：1-是，0-否
     */
    @TableField("is_trending")
    private Integer isTrending;

    /**
     * 话题创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 最后更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
